import axiosInstance from "../index";
/**
 * 登录
 * @param {*} data 
 * @returns 
 */
export function Login(data) {
    return axiosInstance({
        url: '/login',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data: JSON.stringify(data)
    })
}
/**
 * 注册
 */
export function Register(data) {
    return axiosInstance({
        url: '/register',
        method: 'post',
        data,
    })
}
